import 'package:flutter/material.dart';
class _MyTheme {
  _Theme theme = _Theme(color: Colors.blue, imgUrl: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fce816130cc5a9084a12f6a3b3e7669702b8459d918559-T3q6uE_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1642572233&t=1441e1bebd15f6739f0ce9fbf1a1d7ff");
  setColor(String color){
    print(color);
    if(color == "green"){
      theme = _Theme(color: Colors.green, imgUrl: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fce816130cc5a9084a12f6a3b3e7669702b8459d918559-T3q6uE_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1642572233&t=1441e1bebd15f6739f0ce9fbf1a1d7ff");
    }else if(color=="red"){
      theme = _Theme(color: Colors.red, imgUrl: "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fce816130cc5a9084a12f6a3b3e7669702b8459d918559-T3q6uE_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1642572233&t=1441e1bebd15f6739f0ce9fbf1a1d7ff");
    }
  }
}
class _Theme{
  var color;
  String imgUrl;
  _Theme({this.color,this.imgUrl=""});
}
_MyTheme myTheme = _MyTheme();